package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-16
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PersonAccessRelaBean对象", description="人员管理-准入工程-关系表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "person_access_rela", resultMap = "BaseResultMap")
public class PersonAccessRelaBean extends Model<PersonAccessRelaBean> {

    private static final long serialVersionUID = 780130818992489695L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "准入单ID")
    private String accessMonadObjId;
    
    @ApiModelProperty(value = "用户ID")
    private String personId;

    @ApiModelProperty(value = "准入工程")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
    @ApiModelProperty(value = "准入周期开始")
    private Date cycleStart;
    
    @ApiModelProperty(value = "准入周期结束")
    private Date cycleEnd;

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
}
